package com.it.day3;

/**
 * ClassName: OperandStackTest
 * Description: 操作数栈的测试
 *
 * @Author: csx
 * @Create: 2025/4/26 - 23:14
 * @version: v1.0
 */
public class OperandStackTest {
    public void testAddOperation() {
        //byte、short、char、boolean：都以int型来保存
        byte i = 15;
        short j = 8;
        int k = i + j;

        long m = 2L;
        int n = 800;
        m = m * n;  //存在宽化类型转换（所以操作数栈的最大深度应该是4）
    }

    public void testAddOperation1(){
        byte i = 15;
        int j = 8;
        int k = i + j;
    }
}
